#设置cmake最低版本
cmake_minimum_required(VERSION 3.4.1)

#设置项目名称
project(tst_qtquickcontrols2_benchmarks)

#引入add_module模板文件
include(${ISSQTTESTROOTDIR}/cmake/add_module.cmake)

#设置测试类型，auto为自动测试，manual为手动测试,即test目录下的文件夹名
set(TEST_TYPE benchmarks)
#设置模块名
set(MODULE qtquickcontrols2)
#设置需要链接的模块
set(LinkQt Core Gui Qml Quick Widgets QuickControls2 QuickTemplates2 QmlWorkerScript)
#设置需要链接的模块的私有模块
set(LinkQtPrivate Core Gui Qml Quick QuickControls2 QuickTemplates2)

set(TST_CONTROLS_DATA "/data/app/el2/100/base/com.example.devecoapi12/cache/testData/qtquickcontrols2/controls/data")
add_definitions(-DTST_CONTROLS_DATA="${TST_CONTROLS_DATA}")
set(QQC2_IMPORT_PATH "/data/app/el2/100/base/com.example.devecoapi12/cache/testData/qtquickcontrols2/imports/")
add_definitions(-DQQC2_IMPORT_PATH="${QQC2_IMPORT_PATH}")
set(QT_QMLTEST_DATADIR "${CMAKE_CURRENT_SOURCE_DIR}/data")
add_definitions(-DQT_QMLTEST_DATADIR="${QT_QMLTEST_DATADIR}")

#多级目录
set(TEST_ITEMS ${TEST_ITEMS}
    ../auto/shared
    creationtime
    objectcount
)


set(PLUGINS QOpenHarmonyPlatformIntegrationPlugin)
create_library(${TEST_ITEMS})

